class OuterClass3 {

    public int data1 = 1;

    public void test() {
        //局部内部类
        class InnerClass {
            public int data1 = 100;
            public static int data2 = 2;

            public void test() {
                System.out.println("Inn::test()");
            }
        }
        //局部内部类 只能在当前方法当中使用！
        InnerClass innerClass = new InnerClass();
        innerClass.test();
    }
}
public class Test{
}